//
//  ContentView.swift
//  buttonaction
//
//  Created by SmartStrategy on 2020/3/23.
//  Copyright © 2020 SmartStrategy. All rights reserved.
//

import SwiftUI

struct ContentView: View {
    @State var isPresented = false
    
    var body: some View {
        VStack{
            Button("show model"){
                self.isPresented = true
            }.sheet(isPresented: $isPresented) {
                GCPresentedView(message: "1111")
            }
            
        }
    }
}


struct GCPresentedView:View {
    let message:String
    var body: some View {
        VStack{
            Text(message)
                .font(.largeTitle)
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
